package com.sui.bigdata.rtcadmin.enums;


/**
 * @Author: TingWuHuang
 * @Date: 2020/5/6 15:30
 * @description
 */
public enum ResultCode {
    /**
     *
     */
    SUCCESS(200, "成功"),
    /**
     *
     */
    PARAM_ERROR(400, "参数错误"),
    /**
     *
     */
    AUTH_FAIL(401, "鉴权失败"),
    /**
     *
     */
    ERROR(500, "请求异常");

    private Integer code;
    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}

